import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Window
import "components"

ApplicationWindow {
    id: window
    width: 800
    height: 600
    visible: true
    title: qsTr("SpinBox 示例集合")
    color: "#f0f0f0"

    ColumnLayout {
        anchors.fill: parent
        spacing: 20

        Text {
            text: "SpinBox 控件示例集合"
            font.pixelSize: 24
            font.bold: true
            Layout.alignment: Qt.AlignHCenter
        }

        GridLayout {
            Layout.fillWidth: true
            columns: 2
            rowSpacing: 20
            columnSpacing: 20

            BasicSpinBox {
                Layout.fillWidth: true
                Layout.fillHeight: true
            }

            CustomStepSpinBox {
                Layout.fillWidth: true
                Layout.fillHeight: true
            }

            StyledSpinBox {
                Layout.fillWidth: true
                Layout.fillHeight: true
            }

            Rectangle {
                Layout.fillWidth: true
                Layout.fillHeight: true
                color: "#f5f5f5"
                radius: 4

                Text {
                    anchors.centerIn: parent
                    text: "示例有待补充"
                    font.bold: true
                    font.pixelSize: 14
                    color: "#333333"
                }
            }
        }
    }
}
